package com.computerManagementSystem.mapper;

import com.computerManagementSystem.pojo.Book;
import com.computerManagementSystem.pojo.BookBorrow;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 赖志宇
 * @date 2020/6/29 0:50
 */
public interface BookMapper {
    void insertBook(Book book);
    void insertBookBorrow(BookBorrow bookBorrow);
    void updateBook(Book book);
    void updateBookBorrow(BookBorrow bookBorrow);
    List<Book> queryCanBorrowBookList(@Param(value = "start")int start, @Param(value = "limit") int limit);
    int queryCanBorrowBookNums();
    List<Book>  queryBookList(@Param(value = "start")int start,@Param(value = "limit") int limit);
    int queryBookNums();
    List<BookBorrow> queryBorrowingBookListByMemberId(String id);
    List<BookBorrow> queryBookBorrowList(@Param(value = "start")int start,@Param(value = "limit") int limit);
    int queryBookBorrowNums();
}
